package inits

import (
	"driver/cmd/basic/config"
	"fmt"
	"github.com/spf13/viper"
)

var err error

func ViperInit() {
	viper.SetConfigFile("../../../driver/configs/config.yaml")
	viper.ReadInConfig()
	viper.Unmarshal(&config.Config)
	if err != nil {
		fmt.Println("数据库配置失败")
	}
	fmt.Println("配置成功", &config.Config)
}
